package com.tracesystem.service;

import com.tracesystem.commons.Result;
import com.tracesystem.controller.info.FileUploadInfo;
import com.tracesystem.model.IssueAttach;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 *  附件业务接口
 * </p>
 *
 * @author Kevin Martin
 * @since 2022-03-23
 */
public interface IssueAttachService extends IService<IssueAttach> {
    /*
     * @Description:文件上传业务接口
     * @Author: JMOCOK
     * @param file: 上传文件
     * @return: com.tracesystem.commons.Result
     **/
    Result<FileUploadInfo> uploadFile(MultipartFile file);

    Result downloadFile(Integer attachId);
}
